<?php
    /**
    * Table.php
    * 
    * @author Osuvaldo Ramos <xdracox@gmail.com>
    * @copyright Copyright (c) 2008, Osuvaldo Ramos
    * @license http://www.opensource.org/licenses/bsd-license.php
    * @package Atman
    */
    
    /**
    * Base class that represents a row in a database table.
    * @package Atman
    */
    abstract class AT_DB_Row extends AT_Object_DB
    {
        /**
        * Contains the name of the table this row is part of.
        * @var string
        */
        protected $tableName;
        
        /**
        * Constructor
        */
        public function __construct($tableName)
        {
            parent::__construct();
            
            $this->tableName = AT_TABLE_PREFIX.$tableName;
        }
        
        /**
        * Updates the database table row with new information.
        * @return void
        */
        public abstract function update();
        
        /**
        * __destruct()
        */
        public function __destruct()
        {
            parent::__destruct();
        }
    }
?>
